package com.globalwave.common.appframe
{
	import flash.display.DisplayObject;
	import flash.events.Event;
	
	import mx.containers.Box;
	import mx.core.FlexGlobals;
	import mx.core.UIComponent;
	
	public class ModuleBox extends Box
	{
		private var moduleLoader:ModuleLoader ;
		public var url:String ;
		public var parentModule:UIComponent ;
		
		public function ModuleBox()
		{
			super();
			
			this.percentHeight = 100 ;
			this.percentWidth = 100 ;
			
			this.moduleLoader = new ModuleLoader(this) ; 
			this.addEventListener("initialize", thisOnInit) ;
		}
		
		protected function thisOnInit(e:Event):void {	
			moduleLoader.load(url);
		}
		
	}
}